package org.domain.acount.session;

import org.domain.acount.entity.*;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.framework.EntityHome;

@Name("tipocontaHome")
public class TipocontaHome extends EntityHome<Tipoconta> {

	public void setTipocontaIdTipoconta(Integer id) {
		setId(id);
	}

	public Integer getTipocontaIdTipoconta() {
		return (Integer) getId();
	}

	@Override
	protected Tipoconta createInstance() {
		Tipoconta tipoconta = new Tipoconta();
		return tipoconta;
	}

	public void load() {
		if (isIdDefined()) {
			wire();
		}
	}

	public void wire() {
		getInstance();
	}

	public boolean isWired() {
		return true;
	}

	public Tipoconta getDefinedInstance() {
		return isIdDefined() ? getInstance() : null;
	}

}
